#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<malloc.h>
typedef int TDataType;
struct tree {
	
	TDataType x;
	tree* left;
	tree* right;

};
tree* BuyNode(TDataType x);

void Preorder(tree* tr);

void Inorder(tree* tr);

void Postorder(tree* tr);

int TreeSize(tree* tr, int size);

void LevelOrder(tree* tr);

void TreeDestory(tree* root);

int TreeLeafSize(tree* root);

int TreeLevelKSize(tree* root, int k);

tree* BinaryTreeFind(tree* root, TDataType x);

int BinaryTreeComplete(tree* root);